<div class="sidebar" id="sidebar">
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large" style="height: 50px">
            <button class="btn btn-success">
                <a title="快捷方式：用户" href="/Admin/MemberInfo/index">
                    <i class="icon-comments"></i>
                </a>
            </button>

            <button class="btn btn-info">
                <a title="快捷方式：商品" href="/Admin/CloserCommodity/index">
                    <i class="icon-hdd"></i>
                </a>
            </button>

            <button class="btn btn-warning">
                <a title="快捷方式：造型" href="/Admin/Looks/index">
                    <i class="icon-user-md"></i>
                </a>
            </button>

            <button class="btn btn-danger">
                <a title="快捷方式：日历" href="/Admin/Calendar/index">
                    <i class="icon-calendar"></i>
                </a>
            </button> 
        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span> <span class="btn btn-info"></span>
            <span class="btn btn-warning"></span> <span class="btn btn-danger"></span>
        </div>
    </div>
    <!-- #sidebar-shortcuts -->


    <ul class="nav nav-list">
        <!-- <if condition="strstr('__SELF__', '/Auth')">
            <li class="active open" <if condition="!in_array('__APP__/Admin/AuthRule/rule',$user_visit_rules)&&!in_array('__APP__/Admin/AuthGroup/group',$user_visit_rules)&&!in_array('__APP__/Admin/AuthUser/user',$user_visit_rules)">style="display: none"</if>>
            <else />

            <li <if condition="!in_array('__APP__/Admin/AuthRule/rule',$user_visit_rules)&&!in_array('__APP__/Admin/AuthGroup/group',$user_visit_rules)&&!in_array('__APP__/Admin/AuthUser/user',$user_visit_rules)">style="display: none"</if>>
        </if>
                <a href="#" class="dropdown-toggle"> <i class="icon-cog"></i>
                    <span class="menu-text"> 权限设置 </span> <b
                        class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/AuthRule')">
                        <li class="active"<if condition="!in_array('__APP__/Admin/AuthRule/rule',$user_visit_rules)">style="display: none"</if>>
                        <else />
                        <li <if condition="!in_array('__APP__/Admin/AuthRule/rule',$user_visit_rules)">style="display: none"</if>>
                    </if>
                    <a href="__APP__/Admin/AuthRule/rule"> <i
                            class="icon-double-angle-right"></i> 规则列表
                    </a></li>

                    <if condition="strstr('__SELF__', '/AuthGroup')">
                        <li class="active" <if condition="!in_array('__APP__/Admin/AuthGroup/group',$user_visit_rules)">style="display: none"</if>>
                        <else />
                        <li <if condition="!in_array('__APP__/Admin/AuthGroup/group',$user_visit_rules)">style="display: none"</if>>
                    </if>
                    <a href="__APP__/Admin/AuthGroup/group"> <i
                            class="icon-double-angle-right"></i> 群组列表
                    </a></li>

                    <if condition="strstr('__SELF__', '/AuthUser')">
                        <li class="active"<if condition="!in_array('__APP__/Admin/AuthUser/user',$user_visit_rules)">style="display: none"</if>>
                        <else />
                        <li <if condition="!in_array('__APP__/Admin/AuthUser/user',$user_visit_rules)">style="display: none"</if>>
                    </if>
                    <a href="__APP__/Admin/AuthUser/user"> <i
                            class="icon-double-angle-right"></i> 用户列表
                    </a></li>
                </ul>
            </li> -->
		<!-- 自定义后台菜单 -->
		<if condition="strstr('__SELF__', '/MemberInfo')||strstr('__SELF__', '/MemberInfo')">
            <li class="active open">
            <else />
            <li>
        </if>
        <a href="#" class="dropdown-toggle"> 
            <i class="icon-cog"></i>
            <span class="menu-text"> 微信用户 </span>
            <b  class="arrow icon-angle-down"></b>
        </a>
        <ul class="submenu">
            <if condition="strstr('__SELF__', '/MemberInfo')">
                <li class="active">
                <else />
                <li>
            </if>
                <a href="__APP__/Admin/MemberInfo/index"> 
                    <i class="icon-double-angle-right"></i> 用户列表
                </a>
            </li>

                   
                </ul>
            </li>
<!-- 衣橱 -->
        <if condition="strstr('__SELF__', '/CloserCommodity/editRule')||strstr('__SELF__', '/CloserCommodity/index')||strstr('__SELF__', '/CloserCommodity/addRule')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 商品 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/CloserCommodity/')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/CloserCommodity/index"> 
                                <i class="icon-double-angle-mid"></i> 商品列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- 造型 -->
        <if condition="strstr('__SELF__', '/Looks/index')||strstr('__SELF__', '/Looks/index')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 造型 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/Looks/index')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/Looks/index"> 
                                <i class="icon-modelling"></i> 造型列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- Calendar  -->
        <if condition="strstr('__SELF__', '/Calendar')||strstr('__SELF__', '/Calendar')">
                    <li class="active open">
                    <else />
                    <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 日历 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/Calendar')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/Calendar/index"> 
                                <i class="icon-calendar"></i> 日历列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- yichu   --> 
        <if condition="strstr('__SELF__', '/CloserCommodity/closer')||strstr('__SELF__', '/CloserCommodity/closer')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 衣橱 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/CloserCommodity/closer')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/CloserCommodity/closer"> 
                                <i class="icon-double-angle-mid"></i> 衣橱列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- yichu   --> 
        <if condition="strstr('__SELF__', '/BhType')||strstr('__SELF__', '/BhType')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 衣橱商品类别 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/BhType')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/BhType"> 
                                <i class="icon-double-angle-mid"></i> 类别列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- BhLabel   --> 
        <if condition="strstr('__SELF__', '/BhLabel')||strstr('__SELF__', '/BhLabel')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 造型类别 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/BhLabel')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/BhLabel"> 
                                <i class="icon-double-angle-mid"></i> 类别列表
                            </a>
                        </li>
                </ul>
            </li>

        <if condition="strstr('__SELF__', '/ImageMatting')||strstr('__SELF__', '/ImageMatting')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 图片去背测试 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/ImageMatting/index')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/ImageMatting/index"> 
                                <i class="icon-double-angle-mid"></i> 上传图片去背
                            </a>
                        </li>
                </ul>
            </li>


<!-- 批量图片上传   --> 
        <if condition="strstr('__SELF__', '/multiuploadimg2')||strstr('__SELF__', '/multiuploadimg2') ||strstr('__SELF__', '/MultiUploadPic')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 批量图片上传 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', 'CloserCommodity/multiuploadimg2')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/CloserCommodity/multiuploadimg2"> 
                                <i class="icon-double-angle-mid"></i> 批量上传商品图片
                            </a>
                        </li>

                    <if condition="($_GET['type'] eq 1) AND strstr('__SELF__', 'MultiUploadPic')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/MultiUploadPic/index/type/1"> 
                                <i class="icon-double-angle-mid"></i> 商品图片列表
                            </a>
                        </li>

                     <if condition="strstr('__SELF__', 'Looks/multiuploadimg2')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/Looks/multiuploadimg2"> 
                                <i class="icon-double-angle-mid"></i> 批量上传造型图片
                            </a>
                        </li>

                    <if condition="($_GET['type'] eq 2) AND strstr('__SELF__', 'MultiUploadPic')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/MultiUploadPic/looks/type/2"> 
                                <i class="icon-double-angle-mid"></i> 造型图片列表
                            </a>
                        </li>
                </ul>
            </li>

<!-- BhKv   --> 
        <if condition="strstr('__SELF__', '/BhKv')||strstr('__SELF__', '/BhKv')">
            <li class="active open">
            <else />
            <li>
        </if>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 首页KV管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <if condition="strstr('__SELF__', '/BhKv')">
                        <li class="active">
                        <else />
                        <li>
                    </if>
                            <a href="__APP__/Admin/BhKv"> 
                                <i class="icon-double-angle-mid"></i> 首页KV列表
                            </a>
                        </li>
                </ul>
            </li>

    </ul>


    <!-- /.nav-list -->

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
           data-icon2="icon-double-angle-right"  data-icon3="icon-double-angle-mid"  
           data-icon4="icon-modelling"  data-icon5="icon-calendar"  data-icon6="icon-yichu"  data-icon7="icon-kv" ></i>
    </div>

    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
    </script>
</div>